package com.yidu.best.TA.Fundinventory.domain;

import java.math.BigDecimal;
import java.util.Date;

public class Fundinventory {
	private String fundInventoryId;
	private String fundInventoryNo;
	private String fundId;
	private String fundCode;
	private String fundName;
	private BigDecimal nav;
	private Integer share;
	private BigDecimal turnover;
	private Date statisticalDate;
	private String description;
	
	public Fundinventory() {
	}

	public Fundinventory(String fundInventoryId, String fundInventoryNo, String fundId, String fundCode,
			String fundName, BigDecimal nav, Integer share, BigDecimal turnover, Date statisticalDate,
			String description) {
		super();
		this.fundInventoryId = fundInventoryId;
		this.fundInventoryNo = fundInventoryNo;
		this.fundId = fundId;
		this.fundCode = fundCode;
		this.fundName = fundName;
		this.nav = nav;
		this.share = share;
		this.turnover = turnover;
		this.statisticalDate = statisticalDate;
		this.description = description;
	}

	@Override
	public String toString() {
		return "Fundinventory [fundInventoryId=" + fundInventoryId + ", fundInventoryNo=" + fundInventoryNo
				+ ", fundId=" + fundId + ", fundCode=" + fundCode + ", fundName=" + fundName + ", nav=" + nav
				+ ", share=" + share + ", turnover=" + turnover + ", statisticalDate=" + statisticalDate
				+ ", description=" + description + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((fundCode == null) ? 0 : fundCode.hashCode());
		result = prime * result + ((fundId == null) ? 0 : fundId.hashCode());
		result = prime * result + ((fundInventoryId == null) ? 0 : fundInventoryId.hashCode());
		result = prime * result + ((fundInventoryNo == null) ? 0 : fundInventoryNo.hashCode());
		result = prime * result + ((fundName == null) ? 0 : fundName.hashCode());
		result = prime * result + ((nav == null) ? 0 : nav.hashCode());
		result = prime * result + ((share == null) ? 0 : share.hashCode());
		result = prime * result + ((statisticalDate == null) ? 0 : statisticalDate.hashCode());
		result = prime * result + ((turnover == null) ? 0 : turnover.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Fundinventory other = (Fundinventory) obj;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (fundCode == null) {
			if (other.fundCode != null)
				return false;
		} else if (!fundCode.equals(other.fundCode))
			return false;
		if (fundId == null) {
			if (other.fundId != null)
				return false;
		} else if (!fundId.equals(other.fundId))
			return false;
		if (fundInventoryId == null) {
			if (other.fundInventoryId != null)
				return false;
		} else if (!fundInventoryId.equals(other.fundInventoryId))
			return false;
		if (fundInventoryNo == null) {
			if (other.fundInventoryNo != null)
				return false;
		} else if (!fundInventoryNo.equals(other.fundInventoryNo))
			return false;
		if (fundName == null) {
			if (other.fundName != null)
				return false;
		} else if (!fundName.equals(other.fundName))
			return false;
		if (nav == null) {
			if (other.nav != null)
				return false;
		} else if (!nav.equals(other.nav))
			return false;
		if (share == null) {
			if (other.share != null)
				return false;
		} else if (!share.equals(other.share))
			return false;
		if (statisticalDate == null) {
			if (other.statisticalDate != null)
				return false;
		} else if (!statisticalDate.equals(other.statisticalDate))
			return false;
		if (turnover == null) {
			if (other.turnover != null)
				return false;
		} else if (!turnover.equals(other.turnover))
			return false;
		return true;
	}

	public String getFundInventoryId() {
		return fundInventoryId;
	}

	public void setFundInventoryId(String fundInventoryId) {
		this.fundInventoryId = fundInventoryId;
	}

	public String getFundInventoryNo() {
		return fundInventoryNo;
	}

	public void setFundInventoryNo(String fundInventoryNo) {
		this.fundInventoryNo = fundInventoryNo;
	}

	public String getFundId() {
		return fundId;
	}

	public void setFundId(String fundId) {
		this.fundId = fundId;
	}

	public String getFundCode() {
		return fundCode;
	}

	public void setFundCode(String fundCode) {
		this.fundCode = fundCode;
	}

	public String getFundName() {
		return fundName;
	}

	public void setFundName(String fundName) {
		this.fundName = fundName;
	}

	public BigDecimal getNav() {
		return nav;
	}

	public void setNav(BigDecimal nav) {
		this.nav = nav;
	}

	public Integer getShare() {
		return share;
	}

	public void setShare(Integer share) {
		this.share = share;
	}

	public BigDecimal getTurnover() {
		return turnover;
	}

	public void setTurnover(BigDecimal turnover) {
		this.turnover = turnover;
	}

	public Date getStatisticalDate() {
		return statisticalDate;
	}

	public void setStatisticalDate(Date statisticalDate) {
		this.statisticalDate = statisticalDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
}
